package cn.stylefeng.guns.modular.gd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName t_gd_tools
 */
@TableName(value ="t_gd_tools")
public class GdTools implements Serializable {
    /**
     * id id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * name 绝缘工具名称
     */
    private String tname;

    /**
     * wvoltage 工作电压
     */
    private BigDecimal wvoltage;

    /**
     * pvoltage 实验电压
     */
    private BigDecimal pvoltage;

    /**
     * plength 实验长度
     */
    private BigDecimal plength;

    /**
     * ptime 试验时间
     */
    private Integer ptime;

    /**
     * pcycle 实验周期
     */
    private Integer pcycle;

    /**
     * unit 单位
     */
    private String unit;

    /**
     * use 用途
     */
    private String usee;

    /**
     * info 备注
     */
    private String info;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * name 绝缘工具名称
     */
    public String getTname() {
        return tname;
    }

    /**
     * name 绝缘工具名称
     */
    public void setTname(String tname) {
        this.tname = tname;
    }

    /**
     * wvoltage 工作电压
     */
    public BigDecimal getWvoltage() {
        return wvoltage;
    }

    /**
     * wvoltage 工作电压
     */
    public void setWvoltage(BigDecimal wvoltage) {
        this.wvoltage = wvoltage;
    }

    /**
     * pvoltage 实验电压
     */
    public BigDecimal getPvoltage() {
        return pvoltage;
    }

    /**
     * pvoltage 实验电压
     */
    public void setPvoltage(BigDecimal pvoltage) {
        this.pvoltage = pvoltage;
    }

    /**
     * plength 实验长度
     */
    public BigDecimal getPlength() {
        return plength;
    }

    /**
     * plength 实验长度
     */
    public void setPlength(BigDecimal plength) {
        this.plength = plength;
    }

    /**
     * ptime 试验时间
     */
    public Integer getPtime() {
        return ptime;
    }

    /**
     * ptime 试验时间
     */
    public void setPtime(Integer ptime) {
        this.ptime = ptime;
    }

    /**
     * pcycle 实验周期
     */
    public Integer getPcycle() {
        return pcycle;
    }

    /**
     * pcycle 实验周期
     */
    public void setPcycle(Integer pcycle) {
        this.pcycle = pcycle;
    }

    /**
     * unit 单位
     */
    public String getUnit() {
        return unit;
    }

    /**
     * unit 单位
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * use 用途
     */
    public String getUsee() {
        return usee;
    }

    /**
     * use 用途
     */
    public void setUsee(String usee) {
        this.usee = usee;
    }

    /**
     * info 备注
     */
    public String getInfo() {
        return info;
    }

    /**
     * info 备注
     */
    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GdTools other = (GdTools) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTname() == null ? other.getTname() == null : this.getTname().equals(other.getTname()))
            && (this.getWvoltage() == null ? other.getWvoltage() == null : this.getWvoltage().equals(other.getWvoltage()))
            && (this.getPvoltage() == null ? other.getPvoltage() == null : this.getPvoltage().equals(other.getPvoltage()))
            && (this.getPlength() == null ? other.getPlength() == null : this.getPlength().equals(other.getPlength()))
            && (this.getPtime() == null ? other.getPtime() == null : this.getPtime().equals(other.getPtime()))
            && (this.getPcycle() == null ? other.getPcycle() == null : this.getPcycle().equals(other.getPcycle()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getUsee() == null ? other.getUsee() == null : this.getUsee().equals(other.getUsee()))
            && (this.getInfo() == null ? other.getInfo() == null : this.getInfo().equals(other.getInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTname() == null) ? 0 : getTname().hashCode());
        result = prime * result + ((getWvoltage() == null) ? 0 : getWvoltage().hashCode());
        result = prime * result + ((getPvoltage() == null) ? 0 : getPvoltage().hashCode());
        result = prime * result + ((getPlength() == null) ? 0 : getPlength().hashCode());
        result = prime * result + ((getPtime() == null) ? 0 : getPtime().hashCode());
        result = prime * result + ((getPcycle() == null) ? 0 : getPcycle().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getUsee() == null) ? 0 : getUsee().hashCode());
        result = prime * result + ((getInfo() == null) ? 0 : getInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tname=").append(tname);
        sb.append(", wvoltage=").append(wvoltage);
        sb.append(", pvoltage=").append(pvoltage);
        sb.append(", plength=").append(plength);
        sb.append(", ptime=").append(ptime);
        sb.append(", pcycle=").append(pcycle);
        sb.append(", unit=").append(unit);
        sb.append(", usee=").append(usee);
        sb.append(", info=").append(info);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}